package com.example.aijie.autoreadhelper.constant;

import com.example.aijie.autoreadhelper.appbean.BaseAppBean;

import java.util.ArrayList;
import java.util.List;

/**
 * 常量工具类
 */
public class AppConstant {
    public static List<BaseAppBean> appBeanList;

    public static int PER_ARTICLE_READ_SECOND = 80; // 每篇文章阅读的时间，单位：秒

    static {
        appBeanList = new ArrayList<>();

        appBeanList.add(getJkdApp());
        appBeanList.add(getDfttApp());
        appBeanList.add(getJhApp());
        appBeanList.add(getQTT());
    }

    private static BaseAppBean getJkdApp() {
        BaseAppBean jkdApp = new BaseAppBean("聚看点", "com.xiangzi.jukandian",
                "com.xiangzi.jukandian.activity.V2WelcomeActivity");
        jkdApp.addAdvPage("com.xiangzinet.jkd.JKDActivity");
        jkdApp.addNewsDetailActivity("com.xiangzi.jukandian.activity.NativeArticalDetailActivity");
        jkdApp.addNewsDetailActivity("com.xiangzi.jukandian.activity.WebViewActivity");
        jkdApp.setHomeActivity("com.xiangzi.jukandian.activity.MainActivity");
        jkdApp.setItemHeight(400);
        jkdApp.setArticleReadTime(70);
        return jkdApp;
    }

    private static BaseAppBean getDfttApp() {
        BaseAppBean dfttApp = new BaseAppBean("东方头条", "com.songheng.eastnews",
                "com.oa.eastfirst.activity.WelcomeActivity");
        dfttApp.setItemHeight(500);
        dfttApp.setArticleReadTime(50);
        dfttApp.addNewsDetailActivity("com.songheng.eastfirst.business.newsdetail.view.activity.NewsDetailH5Activity");
        dfttApp.setHomeActivity("com.songheng.eastfirst.common.view.activity.MainActivity");
        dfttApp.addAdvPage("com.songheng.eastfirst.common.view.activity.WebViewActivity"); // 广告不看
        dfttApp.addAdvPage("com.songheng.eastfirst.business.nativeh5.view.activity.CommonH5Activity"); // 广告不看
        dfttApp.addAdvPage("com.songheng.eastfirst.business.newstopic.view.activity.NewsTopicActivity");  // 时政不算
        dfttApp.addAdvPage("com.songheng.eastfirst.business.xiaoshiping.videodetail.view.activity.DouYinVideoActivity");  // 视频暂时不看
        dfttApp.addAdvPage("com.songheng.eastfirst.business.video.view.activity.VideoDetailActivity");  // 视频暂时不看
        return dfttApp;
    }

    private static BaseAppBean getJhApp() {
        BaseAppBean appBean = new BaseAppBean("韭黄", "com.jiuhuang.news",
                "com.jiuhuang.news.activity.SplashActivity");
        appBean.setItemHeight(500);
        appBean.setArticleReadTime(50);
        appBean.addNewsDetailActivity("com.jiuhuang.news.activity.NewsDetailActivity");
        appBean.setHomeActivity("com.jiuhuang.news.activity.MainActivity");
        appBean.addAdvPage("com.jiuhuang.news.activity.WebActivity"); // 广告不看
        appBean.addAdvPage("com.qq.e.ads.ADActivity"); // 广告不看
        return appBean;
    }

    private static BaseAppBean getQTT() {
        BaseAppBean appBean = new BaseAppBean("淘头条", "com.ly.taotoutiao",
                "com.ly.taotoutiao.view.activity.WelComeActivity");
        appBean.setItemHeight(350);
        appBean.setArticleReadTime(46);
        appBean.addNewsDetailActivity("com.ly.taotoutiao.view.activity.NewsDetialTempActivity");
        appBean.setHomeActivity("com.ly.taotoutiao.view.activity.MainActivity");
        appBean.addAdvPage("com.bytedance.sdk.op.enadsdk.activity.TTLandingPageActivity"); // 广告不看
        appBean.addAdvPage("com.bytedance.sdk.openadsdk.activity.TTVideoLandingPageActivity"); // 广告不看
        appBean.addAdvPage("com.sdk.searchsdk.SearchResultActivity"); // 广告不看
        appBean.addAdvPage("com.sdk.searchsdk.SearchResultActivity"); // 广告不看
        appBean.addAdvPage("com.longyun.adsdk.view.AdActivity"); // 广告不看
        appBean.addAdvPage("com.baidu.mobads.AppActivity"); // 广告不看
        return appBean;
    }
}
